package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string
	Password string
	NickName string
}

func (u *User) GetUserByID(userId int64) error {
	return DB.Where("id=?", userId).Limit(1).Find(&u).Error
}
